package com.ee.chat.common.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ee.chat.common.bean.Result;
import com.ee.chat.common.entity.UserRemarkLog;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author AppiJ
 * @since 2020-10-10
 */
public interface UserRemarkLogMapper extends BaseMapper<UserRemarkLog> {

    /**
     * 查询用户备注纪录列表
     * @Author AppiJ
     * @Date 2020/10/10 1:02
     * @param
     * @return
     */
    IPage<Map<String, Object>> list(Page page, @Param("userId") Integer userId, @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);

    /**
     * 获取用户备注记录
     * @Author AppiJ
     * @Date 2020/10/15 20:51
     * @param
     * @return
     */
    List<String> queryUserRemarkList(@Param("userId") Integer userId);

    /**
     * 批量删除备注记录
     * @Author AppiJ
     * @Date 2021/3/16 17:11
     * @param
     * @return
     */
    int delRemarkById(@Param("ids") List<Integer> ids);
}